<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

/**
 * 原始字段设置填充器
 *
 * Date: 2018/6/4
 * @author George
 */
class OriginalsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$originals = [
    		[
    			'name' => '总出勤日',
    			'table' => 'monthly_attendance_reports',
    			'field' => 'days',
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'name' => '节假日',
    			'table' => 'monthly_attendance_reports',
    			'field' => 'holidays',
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			]
		];

    	DB::table('originals')->insert($originals);
    }
}
